package br.com.wepa.webapps.search;

public class Order {
	private String property;

	private boolean ascending;

	public Order(String name, boolean ascending) {
		super();
		this.property = name;
		this.ascending = ascending;
	}

	public boolean isAscending() {
		return ascending;
	}
	
	public void ascending() {
		this.ascending = true;
	}

	public void descending() {
		this.ascending = false;
	}
	
	public String getProperty() {
		return property;
	}

	public void setProperty(String name) {
		this.property = name;
	}

}
